<h1><%= t '.edit_preferences' %></h1>

<div id="preferences">
  <% form_for(@user) do |f| %>
  <%= f.error_messages %>
  <ol>
    <li>
      <%= f.label(:email, t('generic.email'), :title => t('.tooltip.email')) %>
      <%= f.text_field(:email, :title => t('.tooltip.email')) %>
    </li>
    <li>
      <%= f.label(:password, t('generic.password'), :title => t('.tooltip.password')) %>
      <%= f.password_field(:password, :title => t('.tooltip.password'), :value => "") %>
    </li>
    <li>
      <%= f.label(:password_confirmation, t('.confirm_password'), :title => t('.tooltip.confirm_password')) %>
      <%= f.password_field(:password_confirmation, :title => t('.tooltip.confirm_password'), :value => "") %>
    </li>
    <li>
      <%= f.check_box(:send_email, :title => t('.tooltip.send_email')) %>
      <%= f.label(:send_email, t('.send_email'), :title => t('.tooltip.send_email')) %>
    </li>
    <li>
      <%= submit_tag(t('generic.save'), :title => t('.tooltip.save')) %>
    </li>
  </ol>
  <% end %>
</div>
